<!-- 订单商品信息 -->
{{if !empty($module_data) and !empty($module_data['items'])}}
<!-- 用户订单列表基础顶部-开始 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
    <span>plugins_view_user_order_list_base_top</span>
</div>
{{/if}}
{{php}}
$hook_name = 'plugins_view_user_order_list_base_top';
$hook_data = MyEventTrigger($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$module_data]);
if(!empty($hook_data) && is_array($hook_data))
{
foreach($hook_data as $hook)
{
if(is_string($hook) || is_int($hook))
{
echo htmlspecialchars_decode($hook);
}
}
}
{{/php}}
<!-- 用户订单列表基础顶部-结束 -->

<!-- 基础信息 -->
<p class="am-nbfc am-margin-bottom-xs">
    <!-- 订单号 -->

    <!-- 仓库信息 -->
    <!--        {{if !empty($module_data['warehouse_name'])}}-->
    <!--            <span class="warehouse-item-container am-fr">-->
    <!--                {{if !empty($module_data['warehouse_icon'])}}-->
    <!--                    {{if IsUrl($module_data['warehouse_icon'])}}-->
    <!--                        <img src="{{$module_data.warehouse_icon}}" alt="{{$module_data.warehouse_name}}" class="warehouse-icon" />-->
    <!--                    {{else /}}-->
    <!--                        <i class="{{$module_data.warehouse_icon}}"></i>-->
    <!--                    {{/if}}-->
    <!--                {{/if}}-->
    <!--                {{if empty($module_data['warehouse_url'])}}-->
    <!--                    <strong class="warehouse-name">{{$module_data.warehouse_name}}</strong>-->
    <!--                {{else /}}-->
    <!--                    <a href="{{$module_data.warehouse_url}}" target="_blank" class="text-deco-none">-->
    <!--                        <strong class="warehouse-name">{{$module_data.warehouse_name}}</strong>-->
    <!--                    </a>-->
    <!--                {{/if}}-->
    <!--            </span>-->
    <!--        {{/if}}-->

    <!-- 订单列表基础导航底部-开始 -->
    {{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
    <span>plugins_view_user_order_list_base_nav_bottom</span>
</div>
{{/if}}
{{php}}
$hook_name = 'plugins_view_user_order_list_base_nav_bottom';
$hook_data = MyEventTrigger($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$module_data]);
if(!empty($hook_data) && is_array($hook_data))
{
foreach($hook_data as $hook)
{
if(is_string($hook) || is_int($hook))
{
echo htmlspecialchars_decode($hook);
}
}
}
{{/php}}
<!-- 订单列表基础导航底部-结束 -->
</p>

<!-- 用户订单列表基础商品顶部-开始 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
    <span>plugins_view_user_order_list_base_goods_top</span>
</div>
{{/if}}
{{php}}
$hook_name = 'plugins_view_user_order_list_base_goods_top';
$hook_data = MyEventTrigger($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$module_data]);
if(!empty($hook_data) && is_array($hook_data))
{
foreach($hook_data as $hook)
{
if(is_string($hook) || is_int($hook))
{
echo htmlspecialchars_decode($hook);
}
}
}
{{/php}}
<!-- 用户订单列表基础商品顶部-结束 -->

<!-- 商品信息 -->
{{foreach $module_data.items as $item}}
<div style="display: flex;align-items: center;justify-content: space-between;margin-bottom: 20px;">
    <span>訂單時間：{{$item.add_time}}</span>

    <div style="display: flex;align-items: center;">

        {{if ($module_data['is_can_launch_aftersale'] eq 1 or !empty($item['orderaftersale'])) and
        !empty($item['orderaftersale_btn_text'])}}
        <div class="am-fr" style="margin-right: 20px;">
            <a href="{{:MyUrl('index/orderaftersale/detail', ['oid'=>$module_data['id'], 'did'=>$item['id']])}}"
                target="_blank" class="am-text-primary">
                {{if empty($item['orderaftersale'])}}
                {{$item.orderaftersale_btn_text}}
                {{else /}}
                <span
                    class="{{if $item['orderaftersale']['status'] eq 3}}am-text-success{{else /}}am-text-secondary{{/if}}">{{$item.orderaftersale_btn_text}}</span>
                {{/if}}
            </a>
        </div>
        {{/if}}
        <!-- 支付状态 -->
        {{if !empty($module_data)}}
        {{if $module_data['pay_status'] eq 1}}
        <p class="am-text-success">{{$module_data.pay_status_name}}</p>
        {{elseif $module_data['pay_status'] gt 1 /}}
        <p class="am-text-warning">{{$module_data.pay_status_name}}</p>
        {{else /}}
        <p class="am-text-danger">{{$module_data.pay_status_name}}</p>
        {{/if}}
        {{if !empty($module_data['is_under_line_text'])}}
        <p class="am-text-warning">{{$module_data.is_under_line_text}}</p>
        {{/if}}
        {{/if}}
        
    </div>
</div>
<div style="display: flex;margin-bottom: 1.5rem;">
    <div>
        <a href="{{$item.goods_url}}" target="_blank">
            <img src="{{$item.images}}" class="am-radius am-margin-right-sm" style="width: 70px;height: 70px;" />
        </a>
    </div>
    <div style="width: 90%;">
        <div class="am-nbfc">
            <div class="am-text-truncate">
                <a href="{{$item.goods_url}}" target="_blank" style="margin-bottom: 10px;display: inline-block;">{{$item.title}}</a>
            </div>
        </div>
        {{if !empty($item['spec_text'])}}
        <div class="am-margin-top-xs am-nowrap-initial">{{$item.spec_text}}</div>
        {{/if}}
        <div style="display: flex;align-items: center;justify-content: space-between;">
            <div style="display: flex;align-items: center;justify-content: space-between;width: 100%;color: #999;">
                <span style="color: #FD2D69;font-weight: bold;">{{$module_data.currency_data.currency_symbol}}{{$item.price}}</span>
                <span>x{{$item.buy_number}}</span>
            </div>
           <div>
            {{if $item['returned_quantity'] gt 0 or $item['refund_price'] gt 0}}
            <span class="am-text-danger am-margin-left-lg">{{:MyLang('already_retreat_title')}}
                {{$item.returned_quantity}} /
                {{$module_data.currency_data.currency_symbol}}{{$item.refund_price}}</span>
            {{/if}}
           </div>
        </div>

        <!-- 商品描述信息 -->
        <div class="am-margin-top-sm" style="color: #999;">{{$module_data.describe}}</div>
    </div>
</div>
{{/foreach}}

<!-- 用户订单列表基础商品底部-开始 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
    <span>plugins_view_user_order_list_base_goods_bottom</span>
</div>
{{/if}}
{{php}}
$hook_name = 'plugins_view_user_order_list_base_goods_bottom';
$hook_data = MyEventTrigger($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$module_data]);
if(!empty($hook_data) && is_array($hook_data))
{
foreach($hook_data as $hook)
{
if(is_string($hook) || is_int($hook))
{
echo htmlspecialchars_decode($hook);
}
}
}
{{/php}}
<!-- 用户订单列表基础商品底部-结束 -->

<!-- 用户订单列表基础顶部-开始 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
    <span>plugins_view_user_order_list_base_bottom</span>
</div>
{{/if}}
{{php}}
$hook_name = 'plugins_view_user_order_list_base_bottom';
$hook_data = MyEventTrigger($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'data'=>$module_data]);
if(!empty($hook_data) && is_array($hook_data))
{
foreach($hook_data as $hook)
{
if(is_string($hook) || is_int($hook))
{
echo htmlspecialchars_decode($hook);
}
}
}
{{/php}}
<!-- 用户订单列表基础顶部-结束 -->
{{/if}}